package com.usernet.product.comm;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionForward;
import org.apache.struts.action.ActionMapping;
import org.apache.struts.actions.DispatchAction;

import com.usernet.product.dao.AdminDao;
import com.usernet.product.dao.AdminLogDao;
import com.usernet.product.dao.CommentDao;
import com.usernet.product.dao.ErrorDao;
import com.usernet.product.dao.LogDao;
import com.usernet.product.dao.LoginErrorDao;
import com.usernet.product.dao.PhotoDao;
import com.usernet.product.dao.ResourcesDao;
import com.usernet.product.dao.SoftwareDao;
import com.usernet.product.dao.TypeDao;
import com.usernet.product.dao.UserDao;
import com.usernet.product.utils.BeanFactory;

public class BaseAction extends DispatchAction {
	protected LogDao logDao = (LogDao) BeanFactory.getBean("logDao");
	protected AdminDao adminDao = (AdminDao) BeanFactory.getBean("adminDao");
	protected CommentDao commentDao = (CommentDao) BeanFactory
			.getBean("commentDao");
	protected ErrorDao errorDao = (ErrorDao) BeanFactory.getBean("errorDao");
	protected PhotoDao photoDao = (PhotoDao) BeanFactory.getBean("photoDao");
	protected SoftwareDao softwareDao = (SoftwareDao) BeanFactory
			.getBean("softwareDao");
	protected TypeDao typeDao = (TypeDao) BeanFactory.getBean("typeDao");
	protected UserDao userDao = (UserDao) BeanFactory.getBean("userDao");
	protected AdminLogDao adminLogDao = (AdminLogDao) BeanFactory
			.getBean("adminLogDao");
	protected LoginErrorDao loginErrorDao = (LoginErrorDao) BeanFactory
			.getBean("loginErrorDao");
	protected ResourcesDao resourcesDao = (ResourcesDao) BeanFactory
			.getBean("resourcesDao");

	@Override
	public ActionForward execute(ActionMapping mapping, ActionForm form,
			HttpServletRequest request, HttpServletResponse response)
			throws Exception {
		return super.execute(mapping, form, request, response);
	}
}